<?php
require_once dirname(__FILE__) . '/../includes/common.inc.php';
require_once dirname(__FILE__) . '/../includes/pdoorm.inc.php';

header('Content-Type: text/plain');

$sql="
    insert into ns_v1sampleattributeoption 
    SELECT a.*,c.oid_a AS sampleattritebute_id FROM ns_sampleattributeoption as a LEFT JOIN ns__ez_relation_sampleattribute_sampleattributeoption AS c
ON  a.e_oid = c.oid_b
";

sql_execute($sql);
